import { RequestData, POST } from '@/utils/request-data';

const requestData = Object.create(RequestData);
requestData.setBaseUrl('/erp/dealer');

// 报关
export const declareInfoPage = params => requestData.base('/declare/info/page', POST, params);
export const declareInfoList = params => requestData.base('/declare/info/list', POST, params);
export const declareInfoAdd = params => requestData.base('/declare/info/add', POST, params);
export const declareInfoDelete = ids => requestData.base('/declare/info/delete', POST, ids);
export const declareInfoEdit = params => requestData.base('/declare/info/edit', POST, params);

export const declareTemplatePage = params => requestData.base('/declare/info/templatePage', POST, params);
export const declareTemplateList = params => requestData.base('/declare/info/templateList', POST, params);
